<template>
  <!-- style="width: 100%;" -->
  <el-switch
    v-model="dataValue"
    :disabled="disabled"
    :active-color="attrs.activeColor"
    :inactive-color="attrs.inactiveColor"
    :active-text="attrs.activeText"
    :inactive-text="attrs.inactiveText"
    :active-value="attrs.activeValue"
    :inactive-value="attrs.inactiveValue"
    @change="valueChange"
  />
</template>
<script type="text/javascript">
import XMixIn from './XMixIn'
export default {
  mixins: [XMixIn],
  props: ['activeColor', 'inactiveColor', 'activeText', 'inactiveText', 'activeValue', 'inactiveValue']
}
</script>
